import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    current:{}
  },
  getters: {
  },
  mutations: {
    initcurrent(state,n){
      for (const key in n) {
        state.current[key] = n[key]
      }
    },
    clearcurrent(state){
      state.current = ''
    }
  },
  actions: {
  },
  modules: {
  }
})
